<form action="{url()}" method="post" class="uk-form uk-form-horizontal" id="form">
            <ul class="uk-tab" data-uk-tab="{connect:'#tab-left-content'}">
                <li class="uk-active"><a href="#">基本信息</a>
                </li>
                <li class=""><a href="#">菜单显示</a>
                </li>
                <li class=""><a href="#">操作权限</a>
                </li>
            </ul>
            <ul id="tab-left-content" class="uk-switcher uk-margin-top">
                <li class="uk-active">
                    <div class="uk-form-row">
                        <label class="uk-form-label">上级角色</label>
                        <div class="uk-form-controls">
                            <select name="parent_id">
                            <option value="0">==顶级角色==</option>
                                <!--loop{$groupList as $vo}-->
                                <!--if{$info['parent_id'] == $vo['group_id']}-->
                                <option value="{$vo.group_id}" selected>
                                    <!--{else}-->
                                <option value="{$vo.group_id}">
                                    <!--{/if}-->
                                    {$vo.cname}</option>
                                <!--{/loop}-->
                            </select>
                            <span class="uk-form-help-inline"></span>
                        </div>
                    </div>
                    <div class="uk-form-row">
                        <label class="uk-form-label">角色名称</label>
                        <div class="uk-form-controls">
                            <input id="system_title" class="uk-form-width-large" datatype="s" type="text" name="name" value="{$info.name}">
                            <span class="uk-form-help-inline"></span>
                        </div>
                    </div>
                    <div class="uk-form-row">
                        <label class="uk-form-label">角色状态</label>
                        <div class="uk-form-controls uk-form-controls-text">
                            <label class="uk-margin-right">
                                <?php if(!isset($info[ 'status'])) $info[ 'status']=1 ; ?>
                                <!--if{$info['status']}-->
                                <input name="status" value="1" checked="checked" type="radio">
                                <!--{else}-->
                                <input name="status" value="1" type="radio">
                                <!--{/if}-->
                                正常</label>
                            <label class="uk-margin-right">
                                <!--if{!$info['status']}-->
                                <input name="status" checked="checked" value="0" type="radio">
                                <!--{else}-->
                                <input name="status" value="0" type="radio">
                                <!--{/if}-->
                                禁用</label>
                        </div>
                    </div>
                    <div class="uk-form-row">
                        <div class="uk-form-controls">
                            <input type="hidden" name="group_id" type="hidden" value="{$info.group_id}">
                            <button class="uk-button uk-button-primary" type="submit">保存</button>
                            <button class="uk-button" type="reset">重置</button>
                        </div>
                    </div>
                </li>
                <li>
                <!--loop{$SystemMenu as $topLabel => $top}-->
                <div class="uk-form-row">
                    <label class="uk-form-label uk-margin-top">{$top.name}</label>
                    <div class="uk-form-controls uk-form-controls-text">
                        <!--loop{$top['menu'] as $parentLabel => $parent}-->
                        <div class="uk-panel uk-panel-box uk-panel-box-primary">
                            <p class="uk-link-muted"> {$parent.name} </p>
                            <p>
                            <!--loop{$parent['menu'] as $subLabel => $sub}-->
                              <label class="uk-margin-right">
                              <!--if{in_array($top['name'].'_'.$parent['name'].'_'.$sub['name'],(array)$SystemMenuArray) }--><input name="menu_purview[]" value="{$top.name}_{$parent.name}_{$sub.name}" type="checkbox" checked="checked">
                              <!--{else}-->
                              <input name="menu_purview[]" value="{$top.name}_{$parent.name}_{$sub.name}" type="checkbox">
                              <!--{/if}-->
                              {$sub.name}</label>
                          <!--{/loop}-->
                          </p>
                        </div>
                        <!--{/loop}-->
                    </div>
                </div>
                <!--{/loop}-->
                <div class="uk-form-row">
                        <div class="uk-form-controls">
                            <input type="hidden" name="group_id" type="hidden" value="{$info.group_id}">
                            <button class="uk-button uk-button-primary" type="submit">保存</button>
                            <button class="uk-button" type="reset">重置</button>
                        </div>
                    </div>
                </li>
                <li>
                <!--loop{$SystemPurvew as $key => $app}-->
                <!--loop{$app as $listMode => $list}-->
               <div class="uk-form-row">
                    <label class="uk-form-label  uk-margin-top">{$list.name}</label>
                    <div class="uk-form-controls uk-form-controls-text">
                        <div class="uk-panel uk-panel-box uk-panel-box-primary">
                        <!--loop{$list['auth'] as $action => $vo}-->
                             <label class="uk-margin-right">
                              <!--if{ in_array($key.'_'.$listMode.'_'.$action,(array)$SystemPurvewArray) }-->
                              <input name="base_purview[]" value="{$key}_{$listMode}_{$action}" type="checkbox" checked="checked">
                              <!--{else}-->
                              <input name="base_purview[]" value="{$key}_{$listMode}_{$action}" type="checkbox" >
                              <!--{/if}-->
                              {$vo}</label>
                         <!--{/loop}-->
                            </div>
                    </div>
                </div>
                <!--{/loop}-->
                <!--{/loop}-->
                <div class="uk-form-row">
                        <div class="uk-form-controls">
                            <input type="hidden" name="group_id" type="hidden" value="{$info.group_id}">
                            <button class="uk-button uk-button-primary" type="submit">保存</button>
                            <button class="uk-button" type="reset">重置</button>
                        </div>
                    </div>
                </li>
            </ul>

</form>
<script>
    Do.ready('base', function () {
        $('#form').duxForm();
    });
</script>